package com.zcy;

import com.zcy.annotation.ServiceAnnotationScanner;
import com.zcy.netty.HessianChannelInitializer;
import com.zcy.netty.Server;
import io.netty.channel.ChannelInitializer;

/**
 * Created by join on 2017/6/21.
 */
public class ServerApp {


    public static void main(String[] args){

        try {
            ServiceAnnotationScanner.scanner("com.com.zcy.com.com.zcy.service");

            ChannelInitializer channeInit = new HessianChannelInitializer();
            Server server = new Server(channeInit);
            server.init();

            server.start();

        } catch (Exception e) {
            e.printStackTrace();
        }
    }






}
